import { get, post } from '@/utils/request';

// login 登陆
export function login(data: any) {
  return post({
    url: '/api/v1/login',
    data,
  });
}

// logout 退出
export function logout() {
  return post({
    url: '/api/v1/logout',
  });
}

// refreshtoken 刷新token
export function refreshtoken(data: any) {
  return post({
    url: '/refreshtoken',
    data,
  });
}

// getInfo 获取用户基本信息
export function getInfo() {
  return get({
    url: '/api/v1/getinfo',
  });
}
